﻿using RestSharp;
using System;
using System.Web;
using Ymatou.ServiceCenter;
using YmtAuth.AppService;
using YmtAuth.Domain.Shard;
using YmtAuth.Dto;
using YmtSystem.CrossCutting;
using ResetService = ServiceStack.Service;

namespace YmtAuth.Web.Handlerv2
{
   public class BillsLoginIdHandler : ResetService
    {
        private IAuthQueryAppService AuthAppService { get { return LocalServiceLocator.GetService<IAuthQueryAppService>(); } }

       //java
        [ServiceRegister("/json/reply/BillsLoginIdModifyEventRequestDto", Method.GET, "/json/reply/BillsLoginIdRequestDto", "获取修改登录名次数", "YmtAuth.Web.V3")]
        public object Get(BillsLoginIdModifyEventRequestDto request)
        {
            HttpContext.Current.Request.Headers.Add(YmtUserKey.RequestId, Guid.NewGuid().ToString("N"));
            HttpContext.Current.Request.Headers.Add(YmtAuthSafeConstant.ApiId, YmtAuthSafeConstant.Api_login);

            return AuthAppService.GetModifyLoginIdCount(request, Request);
        }
    }
}